﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AppScan
{
    public partial class credentials : Form
    {
        public credentials()
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterParent;
        }

        private string strUser;

        public string User
        {
            get { return textBox1.Text; }
        }

        private string strPWD;

        public string PWD
        {
            get { return textBox2.Text; }
        }

        public string mach_text = String.Empty;

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            if (checkBox1.CheckState == CheckState.Unchecked)
            {
                textBox2.UseSystemPasswordChar = true;
            }
            if (checkBox1.CheckState == CheckState.Checked)
            {
                textBox2.UseSystemPasswordChar = false;
            }
        }

        private void credentials_Load(object sender, EventArgs e)
        {
            label1.Text = mach_text;
        }


    }
}
